<?php
require_once("./php/getEq.php");
if($_REQUEST['sp'] != 'fp'){
?>
<table width="95%" align="center" cellpadding="10"  cellspacing="0" bgcolor="#ffffff" class="border">
                              <tr>
							  	<td align="left" height="1px"></td>
							  </tr>
							  <tr>
							  	<td class="heading-bold-n" align="left">Question :  <?php echo $_SESSION['arrExamQuestions'][$showThisQuestion][0];?> </td>
							  </tr>
							<?php
								for($count=1;$count <=4; $count++){
							?>

							  <tr>
							  	<td class="txt3a" style="padding:0px 0px 5px 90px;"><input name="answer" id="answer" type="radio" value="<?php echo $_SESSION['arrExamQuestions'][$showThisQuestion][$count][0]; ?>" <?php if($_SESSION['arrExamQuestions'][$showThisQuestion][6] == $_SESSION['arrExamQuestions'][$showThisQuestion][$count][0]){echo 'checked';}?> />&nbsp;<?php echo $_SESSION['arrExamQuestions'][$showThisQuestion][$count][1]; ?></td>
                              </tr>
							   <?php } ?>
                             <tr>
                                <td align="left" class="heading-bold-n">
								<?php 
	if($_SESSION['sessCurIndex'] > 0 ){ 
		echo '<input type="button" name="Button" class="btn-n" value="Previous" onclick="getExamQuestions(\'sp\')" />&nbsp;&nbsp;';
	} 
	if((count($_SESSION['arrKeys']) - 1) != $_SESSION['sessCurIndex'] ){
		echo '<input type="button" name="Button" class="btn-n" value="Next" onclick="getExamQuestions()" />&nbsp;&nbsp;';
	} 
	?><input type="button" name="Button" value="Submit" class="btn-n" onclick="getExamQuestions('fp')" />
								</td>
  </tr>
</table>
<?php } ?>